
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"1919978D-1578-40D0-9844-B6DD1AD0F261"}
 */
function nuevoRegistro(event) {
	forms.resultados_cab_tbl.resultados_cab_to_resultados_dtl.newRecord()
	elements.fld_valor.requestFocus()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"85527689-221B-43EF-9E96-4CD372DC6B56"}
 */
function cancelar(event) {
	databaseManager.revertEditedRecords()
	databaseManager.setAutoSave(true)
	var $win = application.getWindow('RESULTADO_CARGA')
	$win.hide()
	$win.destroy()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"A0F47187-3995-42F3-BFF7-CC2F3045C207"}
 */
function aceptar(event) {
	if (valor == null)
		controller.deleteRecord()
	databaseManager.saveData()
	databaseManager.setAutoSave(true)
	var $win = application.getWindow('RESULTADO_CARGA')
	$win.hide()
	$win.destroy()
}
